<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .clock {
            width: 200px;
            height: 200px;
            margin: 100px auto;
            border: 10px solid purple;
            border-radius: 110px;
            position: relative
        }

        .line {
            width: 4px;
            background: skyblue;
            position: absolute;
            height: 100%;
            left: 50%;
            margin-left: -2px
        }

        /* 六个div保证六条线的正常运行 */
        .line2 {
            transform: rotate(30deg)
        }

        .line3 {
            transform: rotate(60deg)
        }

        .line4 {
            transform: rotate(90deg)
        }

        .line5 {
            transform: rotate(120deg)
        }

        .line6 {
            transform: rotate(150deg)
        }

        /* 保证对称点的加粗 */
        .line1,
        .line4 {
            width: 6px;
            margin-left: -3px
        }

        /* 中间遮罩层 */
        .cover {
            height: 160px;
            width: 160px;
            background: #fff;
            position: absolute;
            left: 50%;
            top: 50%;
            border-radius: 80px;
            margin-left: -80px;
            margin-top: -80px
        }

        .dotted {
            width: 20px;
            height: 20px;
            border-radius: 10px;
            left: 50%;
            top: 50%;
            position: absolute;
            background: black;
            margin-left: -10px;
            margin-top: -10px;
        }

        .hour {
            position: absolute;
            left: 50%;
            width: 6px;
            height: 55px;
            background: red;
            top: 45px;
            margin-left: -3px;
            transform-origin: bottom center
        }

        .minute {
            position: absolute;
            left: 50%;
            width: 4px;
            height: 75px;
            background: green;
            top: 25px;
            margin-left: -2px;
            transform-origin: bottom center
        }

        .second {
            position: absolute;
            left: 50%;
            width: 2px;
            height: 95px;
            background: gold;
            top: 5px;
            margin-left: -1px;
            transform-origin: bottom center
        }
        .styles{
            width: 100px;
            height: 100px;
            background-color: gray;
        }
    </style>
</head>

<body>
    <div class="clock">
        <div class="line line1"></div>
        <div class="line line2"></div>
        <div class="line line3"></div>
        <div class="line line4"></div>
        <div class="line line5"></div>
        <div class="line line6"></div>
        <!-- 遮罩层 -->
        <div class="cover"></div>
        <div class="hour"></div>
        <div class="minute"></div>
        <div class="second"></div>
        <!-- 中间原点 -->
        <div class="dotted"></div>
    </div>

    <div class="block"> 
        <span>实时获取input里面的值</span>
        <br>
        <input type="text" class="Inp1"> 
        <span class="styles"> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</span>

    </div>
    <script src="./index.js"></script>
</body>

</html>